﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhaoxi.AdvancedCourse.Attrs;
using Zhaoxi.AdvancedCourse.GenericClasses;

namespace Zhaoxi.AdvancedCourse.Models
{
    public class ExpendInfo : RecordBase, IRecord
    {
        [Remark("支出类别")]
        public string ExpendType {  get; set; }
        public decimal CalTotalAmount(decimal amount)
        {
            return    GenericMethodClass.totalAmount -= amount;
        }

        public decimal AddAmount(decimal amount1, decimal amount2)
        {
            return amount1 + amount2;
        }

        public string GetExpendInfo()
        {
            return Id + "," + Remark + "," + Amount;
        }
    }
}
